package com.mm.Controller;

import com.mm.pojo.User;
import com.mm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author XiaoLuo
 * @ClassName: ConsumerController
 * @Description: ${todo}
 * @date 2019/4/6 21:07
 */
@RestController
@RequestMapping("consumer")
public class ConsumerController {

	@Autowired
	private UserService userService;

	@GetMapping
	public List<User> consumer(@RequestParam("ids") List<Long> ids){
		return this.userService.queryUserByIds(ids);
	}
}
